<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
// --------------------------------------------------------------------
if (!function_exists('nocache') ){
    function nocache(){
		//header no cache
		header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
		header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT');
		header('Cache-Control: no-store, no-cache, must-revalidate');
		header('Cache-Control: post-check=0, pre-check=0', false);
		header('Pragma: no-cache');
		header('Cache-Control: max-age=0');
 	}
}